//
//  AlbumXMLParser.h
//  Dolphin
//
//  Created by Matthew on 11-8-13.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#include <libxml/xmlreader.h>

#import "IPhone_IPad_Judge.h"
@class IPhone_IPad_Judge;

@interface AlbumXMLParser : NSObject 
{
    BOOL dataReceiveErr;
    
    NSMutableData *xmlDataBuffer;
    NSURLConnection *xmlLoadConnect;
    
    NSMutableArray *albumPathArr;
    NSMutableArray *albumTitleArr;
    NSMutableArray *albumIconArr;
    
    int unit_width;
    int unit_height;
    int unit_between_width;
    int unit_between_height;
    int unit_start_off_x;
    int unit_start_off_y;
    int border_width;
    int border_height;
    int font_size;
}

@property int unit_width;
@property int unit_height;
@property int unit_between_width;
@property int unit_between_height;
@property int unit_start_off_x;
@property int unit_start_off_y;
@property int border_width;
@property int border_height;
@property int font_size;

@property(nonatomic,retain) NSMutableArray *albumPathArr;
@property(nonatomic,retain) NSMutableArray *albumTitleArr;
@property(nonatomic,retain) NSMutableArray *albumIconArr;

-(void) startParsing:(NSString *) inXMLAddress;
-(void) xmlParseProc:(xmlTextReaderPtr) xmlreader;
-(void) reset;

@end
